<?php if (!defined('BASEPATH'))     exit('No direct script access allowed');

/* controller di setiap modul dapat extends pada controller admin. Berfungsi untuk membatasi hak akses*/
class Admin_Controller extends MY_Controller{
    function __construct() {
        
        parent::__construct();
        $this->theme_folder='back-end';
               
//        if(!isset($this->session->userdata['telah_masuk'])&& !isset($this->session->userdata['telah_masuk']["privilege"])){
//            $this->session->set_userdata(array('last_url' => current_url()));
//            redirect('user/login', 'refresh');
//        }
//        if("admin"!=$this->session->userdata['telah_masuk']["privilege"])
//        {   
//            $this->session->set_userdata(array('last_url' => current_url()));
//            redirect('user/login', 'refresh');
//        }
//        if(0>=$this->session->userdata['telah_masuk']["id"])
//        {
//            $this->session->set_userdata(array('last_url' => current_url()));
//            redirect('user/login', 'refresh');
//        }
    }   
}
?>
